import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入全局守卫
import "./router/permission";
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import "./iconfont/iconfont.css";
import "./iconfont/font/iconfont.css"
import * as echarts from 'echarts';
//引入i18n
import VueI18n from "vue-i18n";

Vue.prototype.$echarts=echarts
Vue.use(ElementUI);
Vue.use(VueI18n);

const i18n = new VueI18n({
  locale:store.getters.locale,
  messages:{
    "zh":require('./lang/zh'),
    "en":require('./lang/en'),
  }
})
Vue.config.productionTip = false


new Vue({
  i18n,
  router,
  store,
  render: h => h(App)
}).$mount('#app')
